<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>vue基础练习1</title>
</head>

<body>
    <div id="app">
        <div>{{msg}}</div>
        <div v-html="con">{{con}}</div>
        <div><img v-bind:src="imgUrl" alt=""></div>
        <div>{{num+10}}</div>
        <div>{{num>20?"是":"否"}}</div>
        <div>你好{{msg.toUpperCase()}}</div>
    </div>
    <script src="./vue.global.js"></script>
    <script>
        const { createApp } = Vue;
        const app = createApp({
            data() {
                return {
                    msg: "hello world",
                    con: "<h1>标题</h1>",
                    imgUrl: "https://sponsors.vuejs.org/images/crmeb.svg?v2",
                    num: 10
                }
            }
        });
        app.mount('#app');
    </script>
    <script type="module">
        import { a } from "./1.js";
        console.log(a);
    </script>
</body>

</html>